package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.Warehousing;
import com.woniu.supermarket.vo.AdvancedWarehousingVo;
import com.woniu.supermarket.vo.WarehousingVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface WarehousingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Warehousing record);

    Warehousing selectByPrimaryKey(Integer id);

    List<Warehousing> selectAll();

    int updateByPrimaryKey(WarehousingVo record);

    List<WarehousingVo> selectWarehousingByCons(@Param("warehousingNumber") String warehousingNumber,@Param("status") String status);
    //添加入库单
    int insertWarehousing(WarehousingVo warehousingVo);
    //批量删除入库单
    int deleteBatchWarehousing(int[] ids);

    Warehousing selectWarehousingByWarehousingNumber(String warehousingNumber);

    WarehousingVo selectWarehousingAndDetailByWarehousingNumber(String warehousingNumber);

    List<WarehousingVo> selectAllWarehousing();

    void updateStatusByWarehousingNumber(@Param("warehousingNumber") String warehousingNumber,@Param("status") int status);

    int selectCount();

    List<WarehousingVo> selectAdvancedByCons(@Param("advancedWarehousingVo") AdvancedWarehousingVo advancedWarehousingVo);
}